﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Wuqi.Webdiyer;
using System.Data;

public partial class WebPage_asdht_sms_send :  BasePage
{
    // Fields

    protected int page = 1;
    protected int pagesize = 20;


    // Methods
    protected void AspNetPager2_PageChanging(object src, PageChangingEventArgs e)
    {
        this.page = e.NewPageIndex;
        this.databind();
    }

    private void databind()
    {
        if ((base.ASSystem.smspass.Length > 0) && (base.ASSystem.smsuser.Length > 0))
        {
            //DataSet set = new parametersOperate().SendlogSelect(base.ASSystem.smsuser, base.ASSystem.smspass, this.pagesize, this.page);
            //if (set != null)
            //{
            //    this.repeater_datalist.DataSource = set.Tables[0];
            //    this.repeater_datalist.DataBind();
            //    this.AspNetPager2.RecordCount = Convert.ToInt32(set.Tables[1].Rows[0][0]);
            //    this.AspNetPager2.DataBind();
            //}
        }
    }

    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        this.HeaderControl1.Select = "fuwu";
        if (!this.Page.IsPostBack)
        {
            this.AspNetPager2.CurrentPageIndex = this.page;
            this.databind();
        }
    }

}